package com.yudi.blog.bussiness.dao;

import com.yudi.blog.bussiness.dto.Tag;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @Author YuDi
 * @Date 2021/11/10 21:17
 * @Version 1.0
 */

public interface TagsRepository extends JpaRepository<Tag, Long> {

    @Query("select t from Tag t")
    List<Tag> findTop(Pageable pageable);

}
